<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <title>天众云仓</title>
    <script type="text/javascript" src="__PUBLIC__/Common/easyui/js/jquery.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Admin/lib/layer/1.9.3/layer.js"></script>

    <link href="__PUBLIC__/login/new-version/member.css" rel="stylesheet" />

</head>

<body>
<!--header-->
<div class="warp_top">
    <div class="topl">
        <div class="top_logo"><img src="__PUBLIC__/login/new-version/logo1.png"></div>
        <div class="top_fonts">
            <h4>天众云仓-仓储管理系统</h4>
            <p>Teams YunCang - warehouse management system</p>
        </div>
        <div class="clear"></div>
    </div>
    <ul class="topr">
        <li><a href="">官网首页</a></li>
        <li><a href="">帮助与文档</a></li>
        <li><a href="">客服电话：0571-86895631</a></li>
    </ul>
    <div class="clear"></div>
</div>
<!--header-->
<!--main-->
<div class="mainbg">
    <div class="main_center">
        <div class="main_cimg"><img src="__PUBLIC__/login/new-version/login01.png"></div>
        <div class="main_cwarp">
            <img src="__PUBLIC__/login/new-version/login02.png" class="mani_clpic">

    
            <div class="main_clogin">
                <div class="main_cloginw">
                    <div class="main_logint">用户登录&nbsp;|&nbsp;<span>User Login</span></div>
					<div class="main_input">
                        <div class="main_inimg"><img src="__PUBLIC__/login/new-version/sig03.png"></div>
                        <input class="input1" type="text" placeholder="仓库名称" name="warehouse_name" onkeydown="KeyDowns()">
                        <div class="clear"></div>
                    </div>
					<div class="main_input">
                        <div class="main_inimg"><img src="__PUBLIC__/login/new-version/login07.png"></div>
                        <input class="input1" type="text" placeholder="用户名" name="name" onkeydown="KeyDowns()">
                        <div class="clear"></div>
                    </div>
                    <div class="main_input">
                        <div class="main_inimg">
							<img src="__PUBLIC__/login/new-version/login08.png">
						</div>
                        <input class="input1" type="password" placeholder="密码"  name="pwd" onkeydown="KeyDowns()">
                        <div class="clear"></div>
                    </div>

                    <div class="main_yan">

                        <input type="text" name="verify" onkeydown="KeyDowns()" placeholder="请输入验证码"  onfocus="if(this.value=='请输入验证码') {this.value='';}this.style.color='#aaa';" onblur="if(this.value=='') {this.value='请输入验证码';this.style.color='#aaa';}">
						<img id="verifyImg1" src="{:U('Login/verify')}" onClick="fleshVerify()" style="width:128px;height:32px;cursor:pointer;" />
                        <div class="clear"></div>
                    </div>

                    <div class="main_button">
                        <button class="denlu loginbutton"  onclick="doLogin()" style="width: inherit;">登录</button>

                    </div>
                </div>
                <div class="main_bfonts">实现仓运配一体化协同，打造扁平化的供应链</div>
            </div>
    
        </div>
        <div class=" clear"></div>
    </div>
    <div class="clear"></div>
</div>

<!--main-->
<!--bottom-->
<div class="bottom_warp">
    <p class="fcopy">友情链接：百度  腾讯  网易  阿里巴巴  菜鸟科技  顺丰  百世  中通  </p>
    <p class="fcopy">▪&nbsp;&nbsp;copyright © 天众供应链有限公司&nbsp;&nbsp;浙ICP 20170000001▪</p>
</div>
<!--bottom-->


    <script type="text/javascript">
		/*
		*  重载验证码
		*/
		function fleshVerify(){
			var timenow = new Date().getTime();
			document.getElementById('verifyImg1').src= '{:U("Login/verify","","")}'+'/'+timenow;
		}
        //登陆
		function KeyDowns()
		{
		  if (event.keyCode == 13)
		  {
				doLogin();
		  }
		}

        function doLogin(){
            var url="{:U('Login/checkLogin')}";
			$.ajax({
			  type: 'POST',
			  url: url,
			  data:{
					warehouse_name:$('input[name=warehouse_name]').val(),
					name:$('input[name=name]').val(),
					pwd:$('input[name=pwd]').val(),
					verify:$('input[name=verify]').val()
			  },
			  success: function(result){
							text=result.message;
							if(!result.status){
								fleshVerify();
								layer.msg(text);
							}else{
								layer.msg(text, function(){
								  location.href="{:U('Index/index')}";
								});
							}
						}
			});
        }
    </script>


</body></html>